EXPERT EX9000 DIO/AIO Series Communication Driver

 

EXPERT EX9000 DIO/AIO Series communication driver is the driver to communicate with Data Acquisition Module of EXPERT in Taiwan.

 

Note) EXPERT EX9000 DIO/AIO Series normally use RS/485 communication.

  

1. Read settings

 

<Figure 1> is read setting example of  EXPERT EX9000 DIO/AIO Series communication driver. 

<Figure 1>  Read setting example of  EXPERT EX9000 DIO/AIO Series communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.

Also you can input wether 'analog read data is hex format' (0 : float, 1 : word, default = 0), 'check enable/disable of  CRC' (1 : enable, 0 : disable, default = 0) by using option part.

 

Note) You can set controller's station address, baud rate, EXPERT EX9000 DIO/AIO Series by using communication setting of  INIT switch( Refer to: chapter 4).

 

EXPERT EX9000 DIO/AIO Series communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) Station – Controller station number = 0 ~ 255.

2) Read Command – Command = AIN, AI, DI, DO, CONFIG, CH_STS, CH_DATA. ( Refer to <Table 1> )

3) Read Start Address Read channel number( 0 ~ ) when AIN read command.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Fixed to 1.  

AIN : 1 FLOAT/WORD data,

AI : All channel data read, 1 ~ n FLOAT/WORD data,

DI, DO : 1 WORD data,

CONFIG : 4 WORD data,

CH_STS : 1 WORD data,

CH_DATA : All channel data read, 1 ~ n  WORD data

 

Read schedule example) 

FLOAT,     1,     AI,     0,     0,     1,

READ,     1,   CONFIG,  0,  0,   1,

READ,     1,       DI,     0,    10,     1,

 

<Table 1> is read commands and content of EXPERT EX9000 DIO/AIO Series communication driver.

Read Command

Contents

Remarks

AIN

Read of one analog channel

Refer to <Table 2>

AI

Read of all analog channel 

Refer to <Table 2>

DI

Read of digital input channel status

each bit

0 = Off,  1 = On

DO

Read of digital output channel status

CONFIG

Read of module setting status

Refer to <Table 3>

CH_STS

Read of channel status(enable/disable)

each bit, 0 = disable,  1 = enable

CH_DATA

Read of all analog channel value

equal response for  'AI' command, always WORD

<Table 1> Read commands and content of EXPERT EX9000 DIO/AIO Series communication driver

<Table 2>, <Table 3> are data saving address and contents of analog related, 'CONFIG' read command.

Data Saving Address

Contents

Remarks

Start Add + 0

1 ~ n channel value

( FLOAT or WORD )

CONFIG data format :

0 or bit 0, ON = FLOAT data,

bit 1, ON = WORD data

Start Add + 1 ~

Start Add + n

<Table 2> Data saving address and contents of analog related read command(AIN, AI)

Data Saving Address

Contents

Range

Start Add + 0

Address of module (station)

0 ~ 255

Start Add + 1

Type of module

Digital module = always 40h,

Analog module = refer to <Table 4>

Start Add + 2

Baud rate

3 = 1200, 4 = 2400, 5 = 4800, 6 = 9600, 7 = 19200,

8 = 38400, 9 = 57600, 10 ( Ah )= 115200

Start Add + 3

Data type

Refer to <Table 5>

<Table 3> Data saving address and contents of 'CONFIG' read command

<Table 4> is analog module type according to module type code.

<Table 5> is data type according to readed each bit value.

Module type code

Input range

8 ( 8h )

+/- 10 V

9 ( 9h )

+/- 5 V

10 ( Ah )

+/- 1 V

11 ( Bh )

+/- 500 mV

12 ( Ch )

+/- 150 mV

13 ( Dh )

+/- 20 mV

<Table 4> Analog module type according to module type code

 

Bit

Input range

Default

0

0 = float,

1 = 0 ~ 100 % float

2 = 0 ~ 65535 (WORD)

( '+' = 0 ~ 72767,  '-'  = 65535 ~ 32768 )

0

1

2 ~ 4

Don't care

 

5

Check enable/disable ( OFF = disable )

OFF

6

Normal/Fast ( OFF = Normal )

7

60/50 HZ Rejection ( OFF = 60 HZ )

<Table 5> Data type according to readed each bit value

  If you click the icon  in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.

 

<Figure 2> Example of  EXPERT EX9000 DIO/AIO Series communication driver¡¯s Option dialogue box

You can set read schedule by using , , button and listbox of <Figure 2>. 

Analog read data format and CRC check enable/disable can set by using the part of ¡®Analog Read Is Hex Format', "Use Check Sum' shown in <Figure 2>.

<Figure 3> Example of  EXPERT EX9000 DIO/AIO Series communication driver¡¯s read schedule Add/Edit dialogue box

 

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

2. Writing settings

You can write the setting value by using write settings.

 

Digital Write

Digital write(for digital input Tag) setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Controller station number = 0 ~ 255.

3)  ADDRESS           Writing address = 0 ~ 16.(decimal unit)

4)  Extra1                   Write command = DO, or space.

5)  Extra2                   Don't care.

 

Write example 1)

PORT:0,  Station : 1,  Address : 0000,  Extra1 : DO, EXTRA2 :

The setting parameter shown above is a control(On/Off) example of 0(1st) DO for 1 station EXPERT EX9000.

 

Write example 1)

PORT:0,  Station : 1,  Address : 0003,  Extra1 : DO, EXTRA2 :

The setting parameter shown above is a control(On/Off) example of 3(4th) DO for 1 station EXPERT EX9000.

 

Analog Write

Analog write(for analog input Tag) setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Controller station number = 0 ~ 255.

3)  ADDRESS           Don't care.

4)  Extra1                   Write command.

ADDR, TYPE, BAUD, FORMAT : setting command of module configuration. ( Refer to <Table 3> ~ <Table5> )

H_STS : setting of channel using(enable/disable). ( each bit : enable/disable channel, 0 ~ FFh = 8 channel )

5)  Extra2                   Don't care.

 

Write example 1)

PORT:0,  Station : 1,  Address : 0000,  Extra1 : ADDR, EXTRA2 : ,  Output value = 2,

The setting parameter shown above is address changing example from 1 to 2.

 

Note) If you changed station address such as 'Write example 1)', you have to communicate with newly set station.

 

Write example 2)

PORT:0,  Station : 1,  Address : 0000,  Extra1 : TYPE, EXTRA2 : ,  Output value = 9,

The setting parameter shown above is a module type changing example to +/- 5V.

 

Write example 3)

PORT:0,  Station : 1,  Address : 0000,  Extra1 : BAUD, EXTRA2 : ,  Output value = 7,

The setting parameter shown above is a baud rate changing example to 19,200 bps.

 

Write example 4)

PORT:0,  Station : 1,  Address : 0000,  Extra1 : FORMAT, EXTRA2 :

The setting parameter shown above is a data type changing example of  1 station EXPERT EX9000 DIO/AIO Series controller. ( output value = refer to  <Table 5> )

 

Write example 5)

PORT:0,  Station : 1,  Address : 0000,  Extra1 : CH_STS, EXTRA2 :

The setting parameter shown above is setting of channel using(enable/disable) example for 1 station EXPERT EX9000 DIO/AIO Series controller. ( output value = 255 : enable all channel(default))

3. connection of main power and communication cable

Connection of main power and communication cable are as follows.

 

Connection of main power

Please connect 10 ~ 30V DC main power to GND, +Vs connector to EXPERT EX9000 DIO/AIO Series controller such as <Figure 4>.

<Figure 4> is main power and communication cable connection example to  EXPERT EX9017 controller.

<Figure 4> Main power and communication cable connection example to  EXPERT EX9017 controller

Connection of communication cable

Please connect RS-485 communication cable to Port2 connector such as below Figure.

Computer side                                EXPERT EX9000 DIO/AIO Series  side

Tx+, Rx+  -------------------------------------- DATA + connector

Tx-, Rx-  -------------------------------------- DATA - connector

 

4. INIT Mode setting method of EXPERT EX9000 DIO/AIO Series

Init Mode setting method of EXPERT EX9000 DIO/AIO Series is as follows.

EX9000 Series controller can set baud rate, station address, etc.

When you want set default (this call 'Init Mode') baud rate, station adddress, etc, you can set 'Init Mode' in the following order.

1) Power off EX9000 Series controller.

2) Connect 'INIT Mode' pin.  ( EX9017F =  JPA pin, )

3) Power on EX9000 Series controller.

4) Communicate with EX9000 Series controller with 9600 bps, 0 station address.

5) Power off EX9000 Series controller and disconnect 'INIT Mode' pin.

 

Controller's baud rate and station address of after 'INIT Mode' setting

baud rate : 9600 bps

controller station address : 1  ( or 0 according to controller type )

using of  Check Sum : don't use